pspusb.h File Reference

Go to the source code of this file.

Defines

#define PSP_USBBUS_DRIVERNAME   "USBBusDriver"
#define PSP_USB_ACTIVATED   0x200
#define PSP_USB_CABLE_CONNECTED   0x020
#define PSP_USB_CONNECTION_ESTABLISHED   0x002

Functions

int sceUsbStart (const char *driverName, int size, void *args)
 Start a USB driver.
int sceUsbStop (const char *driverName, int size, void *args)
 Stop a USB driver.
int sceUsbActivate (u32 pid)
 Activate a USB driver.
int sceUsbDeactivate (u32 pid)
 Deactivate USB driver.
int sceUsbGetState (void)
 Get USB state.
int sceUsbGetDrvState (const char *driverName)
 Get state of a specific USB driver.


Define Documentation

#define PSP_USB_ACTIVATED   0x200
 

#define PSP_USB_CABLE_CONNECTED   0x020
 

#define PSP_USB_CONNECTION_ESTABLISHED   0x002
 

#define PSP_USBBUS_DRIVERNAME   "USBBusDriver"
 


Function Documentation

int sceUsbActivate u32  pid  ) 
 

Activate a USB driver.

Parameters:
pid - Product ID for the default USB Driver
Returns:
0 on success

int sceUsbDeactivate u32  pid  ) 
 

Deactivate USB driver.

Parameters:
pid - Product ID for the default USB driver
Returns:
0 on success

int sceUsbGetDrvState const char *  driverName  ) 
 

Get state of a specific USB driver.

Parameters:
driverName - name of USB driver to get status from
Returns:
1 if the driver has been started, 2 if it is stopped

int sceUsbGetState void   ) 
 

Get USB state.

Returns:
OR'd PSP_USB_* constants

int sceUsbStart const char *  driverName,
int  size,
void *  args
 

Start a USB driver.

Parameters:
driverName - name of the USB driver to start
size - Size of arguments to pass to USB driver start
args - Arguments to pass to USB driver start
Returns:
0 on success

int sceUsbStop const char *  driverName,
int  size,
void *  args
 

Stop a USB driver.

Parameters:
driverName - name of the USB driver to stop
size - Size of arguments to pass to USB driver start
args - Arguments to pass to USB driver start
Returns:
0 on success


Generated on Tue Nov 21 11:46:05 2006 for pspsdk-1.0+beta2 by  doxygen 1.4.6